import moment from "moment";
export const date = () => {
    let formatDate = function (date, fmt) {
        return moment(date).format(fmt);
    }
    let handleUtcOffset = (time, pattern) => {
        return moment(time).utcOffset(480).format(pattern);
    }

    return {
        handleUtcOffset,
        formatDate
    }
}

